package com.sitech.ibnms.c3p.task.notice;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;

/**
 * Created by Administrator on 2015/1/8.
 */
public enum ExecutePolicy implements Serializable {
    SKIP,//跳过
    PAUSE,//等待人工执行
    NONE;

    private static final Logger logger = LoggerFactory.getLogger(ExecutePolicy.class);

    public static ExecutePolicy valueOfOrNONE(String name) {
        try {
            return valueOf(name);
        } catch (Exception e) {
            logger.warn("UNSUPPORTED ExecutePolicy[" + name + "]", e);
            return NONE;
        }
    }
}
